import request from '@/utils/request'

// 查询固体废物排放列表
export function listSolid(query) {
  return request({
    url: '/pollutant/solid/list',
    method: 'get',
    params: query
  })
}

// 查询固体废物排放详细
export function getSolid(soId) {
  return request({
    url: '/pollutant/solid/' + soId,
    method: 'get'
  })
}

// 新增固体废物排放
export function addSolid(data) {
  return request({
    url: '/pollutant/solid',
    method: 'post',
    data: data
  })
}

// 修改固体废物排放
export function updateSolid(data) {
  return request({
    url: '/pollutant/solid',
    method: 'put',
    data: data
  })
}

// 删除固体废物排放
export function delSolid(soId) {
  return request({
    url: '/pollutant/solid/' + soId,
    method: 'delete'
  })
}

// 导出固体废物排放
export function exportSolid(query) {
  return request({
    url: '/pollutant/solid/export',
    method: 'get',
    params: query
  })
}